package de.vogella.grails.guestbook

class Feedback {
	
	String title
	String feedback
	Date dateCreated // Predefined names by Grails will be filled automatically
	Date lastUpdated // Predefined names by Grails will be filled automatically

	//Relationship to the other classes
	User user
	static hasMany=[comments:Comment]
	
    static constraints = {
		title(blank:false, nullable: false, size:3..80)
		feedback(blank:false, nullable: false, size:3..500)
		user(nullable:false)
    }
}
